package com.mjkj.apis;

import com.mjkj.core.result.Result;
import com.mjkj.core.result.ResultGenerator;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloud-payment-service")
//@FeignClient(value = "cloud-gateway")
public interface PayFeignApi {

    @GetMapping("/t-pay/list")
    public Result list();

    @GetMapping("/t-pay/get/{id}")
    public Result get(@PathVariable(value = "id") Long id);
}
